<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>HelloWorld</title>
    <script type="text/javascript" src="../assets/js/vue.js"></script>
</head>
<body>
    <h1>Hello World!</h1>
    <hr>
    <div id="app">
        
        
        <panda></panda>
    </div>

    
    <script type="text/javascript">
    var city = {
        template:
        `
            <div style="color:blue">sichuan of china!</div>
        `
     }


     var panda = {
        template:
        `
        <div>
            <div style="color:pink">我是局部的component 外部生成</div>
            <city></city>
        </div>
        `,
        components : {
            "city":city
        }
     }

    

        var app = new Vue({
            el:'#app',
            data:{
                message:'Hello World111!'
            },
            components:{
                "panda" : panda
            }
        })
    </script>
</body>
</html>